package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.Shop;
import com.example.mapper.ShopMapper;
import com.example.service.IShopService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangqi
 * @date 2023/11/20
 * @time 16:01
 * @description
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements IShopService {
    @Override
    public List<Shop> findAllShopList() {
        return super.list();
    }

    @Override
    public Integer addOneShop(Shop shop) {
        return super.save(shop)?1:0;
    }
}
